package com.rbs.mapper;

import com.rbs.entity.Address;

import java.util.List;

public interface AddressMapper {
    //根据用户id查询收货地址
    public List<Address> selectByUserId(int userId);
    //删除地址
    void deleteById(int addressId);
    //将该用户的地址都改为非默认
    void updateSelectedStateToNull(int userId);
    //将指定地址改为默认
    void updateSelectedStateToSelectedState(int addressId);
}
